package main
import "fmt"
type TreeNode struct {
	Val int
	Left *TreeNode
	Right *TreeNode
}
func isSameTree(p *TreeNode, q *TreeNode) bool {
	if p == nil && q == nil{
		return true
	}
	if p == nil || q == nil{
		return false
	}
	if p.Val != q.Val{
		return false
	}
	if isSameTree(p.Left,q.Left) == false{
		return false
	}
	return isSameTree(p.Right,q.Right)
}
func main(){
	fmt.Println(isSameTree("aabcc","dbbca"))
	fmt.Print("Hello")
}